package com.ph.controller;

import com.ph.pojo.KeepProjectGroup;
import com.ph.pojo.Result;
import com.ph.service.KeepProjectGroupService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("project/group")
public class KeepProjectGroupController {
    @Autowired
    private KeepProjectGroupService keepProjectGroupService;

    @GetMapping
    public Result findAll() {
        return Result.success(keepProjectGroupService.list());
    }
}
